Repository navigation
Contributing guide: the code rules a reviewer checks, and the habits behind them - #296
Merged
Merged
Conversation
…behind them Adds CONTRIBUTING.md at the root: layout (chains, line width, argument groups, braces), resources and async (using over try/finally, ConfigureAwait, ValueTask), errors (messages that say the fix, one guard at the entry point), performance (state the cost, no allocating string work, masks over HasFlag, generated code at least hand-written speed, benchmarks that consume their results), pull requests (one topic, the description is the squash message, the checks), and the habits that kept reviews short: probe before claiming, compare with the last release before calling a regression, ask whether real code can reach a bug before guarding it, record who decided, stay in scope. Points to docsite/CONTRIBUTING-DOCS.md for documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
CONTRIBUTING.mdat the root: the code rules a reviewer checks on every pull request, and the habits that keep a change small, correct and easy to review. Documentation keeps its own guide,docsite/CONTRIBUTING-DOCS.md, which this one points to.What it covers
=>on the next line, arguments grouped by meaning instead of one per line, braces on a wrapped header.using/await using var _ = x.ConfigureAwait(false);instead oftry/finallyaround a dispose,ConfigureAwait(false)on every library await, no needlessasync, when to returnValueTask.Markdown only; no code changes.
🤖 Generated with Claude Code